package cn.fuxue.hrms.common.entity;
import java.sql.Timestamp;
/**
 * @author 王文勇
 * @version 1.0
 * 审批流程模板实体类
 */

public class ApprovalFlowTemplate {

    // 审批流程模板的唯一标识 ID，主键
    private int id;
    // 审批流程模板名称，用于标识不同的审批流程模板
    private String flowTemplateName;
    // 业务类型，指明该审批流程模板适用的业务领域
    private String businessType;
    // 模板描述，详细说明审批流程模板的功能、步骤等信息
    private String description;
    // 备注，可记录额外的相关信息
    private String remark;
    // 版本号，用于标识审批流程模板的不同版本
    private String version;
    // 是否激活，布尔值，标识该审批流程模板是否可用
    private boolean isActive;
    // 最后修改该审批流程模板的用户 ID
    private Integer modifyId;
    // 创建该审批流程模板的用户 ID
    private Integer createId;
    // 是否删除，布尔值，标识该审批流程模板是否被逻辑删除
    private boolean isDeleted;
    // 创建时间，记录审批流程模板创建的日期和时间
    private Timestamp createTime;

    // 无参构造函数
    public ApprovalFlowTemplate() {
    }

    // 全参构造函数
    public ApprovalFlowTemplate(int id, String flowTemplateName, String businessType,
                                String description, String remark, String version,
                                boolean isActive, Integer modifyId, Integer createId,
                                boolean isDeleted, Timestamp createTime) {
        this.id = id;
        this.flowTemplateName = flowTemplateName;
        this.businessType = businessType;
        this.description = description;
        this.remark = remark;
        this.version = version;
        this.isActive = isActive;
        this.modifyId = modifyId;
        this.createId = createId;
        this.isDeleted = isDeleted;
        this.createTime = createTime;
    }

    // Getter 和 Setter 方法
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getFlowTemplateName() {
        return flowTemplateName;
    }

    public void setFlowTemplateName(String flowTemplateName) {
        this.flowTemplateName = flowTemplateName;
    }

    public String getBusinessType() {
        return businessType;
    }

    public void setBusinessType(String businessType) {
        this.businessType = businessType;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public boolean isActive() {
        return isActive;
    }

    public void setActive(boolean active) {
        isActive = active;
    }

    public Integer getModifyId() {
        return modifyId;
    }

    public void setModifyId(Integer modifyId) {
        this.modifyId = modifyId;
    }

    public Integer getCreateId() {
        return createId;
    }

    public void setCreateId(Integer createId) {
        this.createId = createId;
    }

    public boolean isDeleted() {
        return isDeleted;
    }

    public void setDeleted(boolean deleted) {
        isDeleted = deleted;
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "ApprovalFlowTemplate{" +
                "id=" + id +
                ", flowTemplateName='" + flowTemplateName + '\'' +
                ", businessType='" + businessType + '\'' +
                ", description='" + description + '\'' +
                ", remark='" + remark + '\'' +
                ", version='" + version + '\'' +
                ", isActive=" + isActive +
                ", modifyId=" + modifyId +
                ", createId=" + createId +
                ", isDeleted=" + isDeleted +
                ", createTime=" + createTime +
                '}';
    }
}
